

	//simple ajax fetcher
	
	var menudelay;
	
	$(document).ready(function(){
		
		$('li.dropmenu').mouseover(function(){
			$('ul.dropmenu:visible').hide();
		});
		
		$('.dropmenu').mouseover(function(){
			clearTimeout(menudelay);
			$(this).children('ul.dropmenu').show();
		}).mouseout(function(){
			var xx = this;
			menudelay = setTimeout(function(){
				$(xx).children('ul.dropmenu').hide();
			},500);
		});
	});
	
	function bell_video()
	{
		window.open('resources/swf/bellerive_flythrough.html','bellerive_flythrough','resizable=yes,width=320,height=270,left='+(screen.availWidth/2-470)+',top='+(screen.availHeight/2-300)+'');return false;
	}
	
	function flashInsert(url,w,h,alternative,classx)
	{
		var flash = false;
		//moz
		if (navigator.mimeTypes && navigator.mimeTypes.length){
			x = navigator.mimeTypes['application/x-shockwave-flash'];
			if (x && x.enabledPlugin) {
				flash = true;
			}
		} else {
			//ye olde ie
			x = navigator.plugins["Shockwave Flash"];
			if (x) {
				flash = true;
			}
			//ie, 11 ~ 7
			for(var i=11; i>7; i--){
				try{
					var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
					flash = true;
				}
				catch(e){
				}
			}
		}
		
		if (flash) {
			document.write('\
				<object type="application/x-shockwave-flash" data="'+url+'" width="'+w+'" height="'+h+'"> \
       			<param name="movie" value="'+url+'" /> \
				<param name="wmode" value="transparent"> \
				</object>');
		} else {
			document.write('<img src="'+alternative+'" width="'+w+'" height="'+h+'" usemap="#ScriptMap" border="0"/>');
		}
		
	}
