// MENU FIXER FOR IE
<!--//--><![CDATA[//><!--
		function falsereturn() { return false}

		function newtoggle(elem) {
			if(elem.parentNode.getElementsByTagName("ul")[0].style.display == 'block')
				elem.parentNode.getElementsByTagName("ul")[0].style.display = 'none';
			else
				elem.parentNode.getElementsByTagName("ul")[0].style.display = 'block';
		}

//--><!]]>

function readmore(elementID,hideit) {
	var target1 = document.getElementById(elementID);
	target1.style.display = 'block';
	hideit.style.display = 'none';
}

function swapimg (whichpic) {
	
	if (document.getElementById) {
		
		var img_name = document.getElementById('galswp_main').title;
		var img_imgurl = document.getElementById('galswp_main').src;
		var img_tnurl = document.getElementById('galswp_main').alt;

		var tn_name = document.getElementById(whichpic.title).alt;
		var tn_imgurl = whichpic.href;
		var tn_tnurl = document.getElementById(whichpic.title).src;
		var imgPreload = new Image();
		imgPreload.onload=function(){
			if(document.getElementById('tempimg')){
				$("#tempimg").replaceWith('<img id="tempimg" src="'+whichpic.href+'" />');
			}else{
					$("#tempimg").remove();
					$("#glswp").append('<img id="tempimg" src="'+whichpic.href+'" />'); 
					$("#tempimg").fadeIn(500, function() {
						document.getElementById(whichpic.title).alt=img_name;
						whichpic.href=img_imgurl;
						document.getElementById(whichpic.title).src=img_tnurl;
						document.getElementById('galswp_main').alt = tn_tnurl;
						document.getElementById('galswp_main').src = tn_imgurl;
						document.getElementById('galswp_main').title = tn_name;
						$(this).delay(2,function(){
							$("#tempimg").remove();
						})
					});
			}
		}

		imgPreload.src = whichpic.href;
		return false; 
	} else { 
		return false; 
	} 
	
	
	
}


function isImageOk(img) {
    if (!img.complete) {
        return false;
    }
    if (typeof img.naturalWidth != "undefined" && img.naturalWidth == 0) {
        return false;
    }
    return true;
}

function magRollIn (rollurl) {
	if (document.getElementById) {
		$(rollurl).fadeIn("fast");
	}
}
function magRollOut (rollurl) {
	if (document.getElementById) {
		$(rollurl).fadeOut("fast");

	}
}


function swapdimg (glink) {
	
if (document.getElementById) {	
	if(!document.getElementById('gal-old') && (document.getElementById('gal-image').src != glink.href)) {
		var img_url = glink.href;
		if(glink.title) {
			var img_des = glink.title;
		}
		var imgPreload = new Image();
		document.getElementById('gal-image').id = 'gal-old';
		imgPreload.onload = function() {
			if(!document.getElementById('gal-tmp')) {
				$("#gal-holder").append('<img id="gal-tmp" src="' + img_url + '" />');
				$('#gal-tmp').animate({top : 0}, 500, function() {this.id = "gal-image"; });	
				$('#gal-old').animate({top : "-320"}, 500, function() {$("#gal-old").remove(); });	
			}
		}
		imgPreload.src = img_url;
		return false;
	}
	return false;
}
return false;	
	
/*

				
					



						$("#gali-des").animate(
							{"right" :- 200}, 300, function() {
								var olddes = $("#gali-des").attr("title");
								$('#gali-des').attr( { class : 'desi-hid', id : olddes }
								); if(img_des) {
									$('#' + img_des).attr( {
										title : img_des, id : 'gali-des', class : 'gali-des'
									});
								}
							}
						)}
						
						
						
						

						if(img_des) {
							$('#' + img_des).attr( {
								title : img_des, id : 'gali-des', class : 'gali-des' }
							);
						}

				
			


*/}	   












/*
if (document.getElementById) {
		if(!document.getElementById('gal-old') && (document.getElementById('gal-image').src != glink.href)) {
			var img_url = glink.href;
			if(glink.title) {
				var img_des = glink.title;
			}
			var imgPreload = new Image();
			document.getElementById('gal-image').id = 'gal-old';
			imgPreload.onload = function() {
				if(!document.getElementById('gal-tmp')) {
					$("#gal-holder").append('<img id="gal-tmp" src="' + img_url + '" />');
					$('#gal-tmp').animate(
						{top : 0}, 500, function() {this.id = "gal-image"; }
					);
					$('#gal-old').animate(
						{top : "-320"}, 500, function() {$("#gal-old").remove(); }
					);
					if(document.getElementById('gali-des')) {
						$("#gali-des").animate(
							{"right" :- 200}, 300, function() {
								var olddes = $("#gali-des").attr("title");
								$('#gali-des').attr( { class : 'desi-hid', id : olddes }
								); if(img_des) {
									$('#' + img_des).attr( {
										title : img_des, id : 'gali-des', class : 'gali-des'
									});
								}
							}
						)}
					else {
						if(img_des) {
							$('#' + img_des).attr( {
								title : img_des, id : 'gali-des', class : 'gali-des' }
							);
						}
					}
				}
			}
			imgPreload.src = img_url;
			return false;
		}
		return false;
	}
	return false;
*/

