/*
CSS Browser Selector v0.2.7
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
var css_browser_selector = function(){var ua=navigator.userAgent.toLowerCase(),is=function(t){return ua.indexOf(t) != -1;},h=document.getElementsByTagName('html')[0],b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?'gecko ff2':is('firefox/3')?'gecko ff3':is('gecko/')?'gecko':is('opera/9')?'opera opera9':/opera (\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';var c=b+os+' js'; h.className += h.className?' '+c:c;}();

/*
Background resizing
*/
/*
var resize = function(){var wo=1000,ho=667,w=document.width||document.body.offsetWidth,h=document.height||document.body.offsetHeight,wa=w/wo,ha=h/ho,a=(wa>ha)?wa:ha,wi=a*wo,hi=a*ho,i=document.getElementById("BGI");i.style.width=wi+"px";i.style.height=hi+"px";}
window.onresize = resize;
*/
//var galleryAlert = function (msg) {alert(msg);};
var galleryShow = function(){
	var G = document.getElementById("Gallery");
	if(G.offsetHeight>100) return;
	G.style.marginTop	= "-507px";
	G.style.height		= "420px";
	// IE6 related
	var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
	if(IE6==true){
		var F = document.getElementById("galery");
		F.height = 420;
		F.width  = 780;
	}
	return true;
};
var galleryHide = function(){
	var G = document.getElementById("Gallery");
	if(G.offsetHeight<100) return;
	G.style.marginTop	= "-172px";
	G.style.height		= "85px";
	var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
	if(IE6==true){
		var F = document.getElementById("galery");
		F.height = 85;
		F.width  = 780;
	}
	return false;
};
var galleryTerminate = function(){
	var G = document.getElementById("Gallery");
	G.style.display	= "none";
};
