function launchDemo() {
	window.open("/demo/demo2.html", "demo", "scrollbars,height=750,width=895");
}
function viewimage(pk) {
	window.open("../viewimage/"+pk+"/1/", "images", "scrollbars,height=400,width=800,status=no,resizable=yes");
}
function viewcsimage(pk,type) {
	window.open("../viewcsimage/"+pk+"/"+type+"/", "images", "scrollbars,height=400,width=800,status=no,resizable=yes");
}

function showTip(tipid) {
	page = "../tip/" + tipid;
	tippop = window.open(page, "tip", "scrollbars,height=250,width=400");
	tippop.focus();
}
// Navbar Functions
sections = ['home','products','company','wheretobuy','downloads'];
jQuery.noConflict();  // Hooray for an old MooTools dependency.
jQuery(document).ready(function() {
	jQuery.each(sections, function() {
		var section_name = this;
		jQuery("#nav-"+section_name).hover(function() {showSubNav(section_name)},function(){});
	});
	jQuery("div#main").hover(function() {hideSubNavs()});
	//Table Highlighting
	/*jQuery(".model").hover(
	   function() {
			jQuery(this).css('background-color','#CCC');
		},
		function() {
			jQuery(this).css('background-color','inherit');
		}
	);*/
});
function showSubNav(id) {
	hideSubNavs();
	jQuery('#subnav-'+id).show();
}
function hideSubNavs() {
	jQuery.each(sections, function() {
		jQuery("#subnav-"+this).hide();
	});
}