


/*                                                                                                                                                                              
	clearbox by pyro
	
	script home:		http://www.clearbox.hu
	email:			clearboxjs(at)gmail(dot)com
	MSN:			pyro(at)radiomax(dot)hu
	support forum 1:	http://www.sg.hu/listazas.php3?id=1172325655

	LICENSZ FELTÉTELEK:

	A clearbox szabadon felhasználható bármilyen nem kereskedelmi jellegű honlapon, 
	tehát azokon amelyek nem kereskedelmi tevékenységet folytató cégek, vállalatok 
	oldalai; nem tartalmaznak kereskedelmi jellegű szolgáltatást vagy termék(ek) 
	eladás(á)t, illetve reklámozás(á)t. A kereskedelmi jellegű honlapokon való 
	felhasználásáról érdeklődj a készítőnél! A clearbox forráskódja nem módosítható. 
	A clearbox a készítő beleegyezése nélkül pénzért harmadik félnek tovább nem adható!

	LICENSE:

	ClearBox can be used free for all non-commercial web pages. For commercial using, please contact with the developer:

	George Krupa
*/



var	CB_ScriptDir='../../clearbox';
var	CB_Language='en';



//
//	ClearBox load:
//

	var CB_Scripts = document.getElementsByTagName('script');
	for(i=0;i<CB_Scripts.length;i++){
		if (CB_Scripts[i].getAttribute('src')){
			var q=CB_Scripts[i].getAttribute('src');
			if(q.match('clearbox.js')){
				var url = q.split('clearbox.js');
				var path = url[0];
				var query = url[1].substring(1);
				var pars = query.split('&');
				for(j=0; j<pars.length; j++) {
					par = pars[j].split('=');
					switch(par[0]) {
						case 'config': {
							CB_Config = par[1];
							break;
						}
						case 'dir': {
							CB_ScriptDir = par[1];
							break;
						}
						case 'lng': {
							CB_Language = par[1];
							break;
						}
					}
				}
			}
		}
	}

	if(!CB_Config){
		var CB_Config='default';
	}
	document.write('<meta http-equiv="X-UA-Compatible" content="IE=9" />');
	document.write('<link rel="stylesheet" type="text/css" href="'+CB_ScriptDir+'/config/'+CB_Config+'/cb_style.css" />');
	document.write('<script type="text/javascript" src="'+CB_ScriptDir+'/config/'+CB_Config+'/cb_config.js"></script>');
	document.write('<script type="text/javascript" src="'+CB_ScriptDir+'/language/'+CB_Language+'/cb_language.js"></script>');
	document.write('<script type="text/javascript" src="'+CB_ScriptDir+'/core/cb_core.js"></script>');
	
	if(window.location.href == "http://www.kovopolotovary.cz/" || window.location.href.indexOf("dotaz-na-jinac") > 0 || window.location.href.indexOf("hledej") > 0 || window.location.href.indexOf("ztrata-hesla") > 0 || window.location.href.indexOf("login") > 0){
		document.write('<style type="text/css">h1{display:none;}</style>');
	}

	if(window.location.search.substr(0).indexOf("prepinac") > 0){
		document.write('<style type="text/css">h1{display:none;}</style>');
	}
	if(window.location.href.indexOf("detail") > 0){
		document.write('<style type="text/css">h1{font-size:1.5em;top:270px;} .hslice h2{visibility:hidden;}</style>');
	}	
	if(window.location.href.indexOf("cti") > 0 || window.location.href.indexOf("kosik") > 0 || window.location.href.indexOf("index.php") > 0 || window.location.href.indexOf("nove-zbozi") > 0){
		document.write('<style type="text/css">h1{display:none;} #middle h3{visibility:visible;}</style>');
	}		
	if(window.location.href.indexOf("index.php") > 0 || window.location.href.indexOf("nove-zbozi") > 0){
		document.write('<style type="text/css">#mother > #left-side > #middle > h3:first-of-type{visibility:visible;}</style>');
	}	

	if(window.location.href != "http://www.kovopolotovary.cz/"){
		document.write('<style type="text/css">#middle > a{display:none;} #middle > a + br{display:none;}</style>');
	}
	if(window.location.href.indexOf("katalogy-ke-stazeni") > 0){
		document.write('<style type="text/css">#sort{display:none;}</style>');
	}		
	
		
