var availW;
var availH;

function start () {
	screenProps();
	document.getElementById("pageTitle").innerHTML = "<br/>HOME";
		document.getElementById("content").innerHTML = "<p>DB International is a Netherlands-based global chemical supplier with partners in China and Eastern Europe providing top-quality raw materials and intermediates for industrial chemicals, speciality chemicals, and agrochemical applications. All materials are produced exclusively in modern installations using cutting-edge technology.</p><p>Our skill and know-how provides us with the ability to develop high quality, custom-made solutions to cater for every requirement in product development, manufacturing, sourcing and distribution.</p><p>We have storage facilities in the US, China and Europe, which means  we can supply when and where you need it, ensure steady production supply and consistent quality.</p><p>At DB International we are constantly striving for excellence. Our many years of experience in the industry mean we can offer the highest level of expertise to our customers. From us you can expect consistent quality, on-time delivery, efficient service and the most competitive rates. These are our trademarks and the reason for our excellent reputation in the field.</p>";
			document.getElementById("circleImage").className = "circleImageHome";
	//navigation("menuHome");
	//document.getElementById('page').style.left = availW/4+"px";
	//document.getElementById('page').style.height = availH+"px";
}


function screenProps(){
    screenH = screen.height;
    screenW = screen.width;
    //alert("Schermresolutie:n" + screenW + "px x " + screenH + "px");
    if(document.all){
        availW = document.body.clientWidth;
        availH = document.body.clientHeight;
    }else{
        availW = innerWidth; availH = innerHeight;
    }
    //alert("Dit hebben we aan ruimte:n" + availW + "px + x " + availH + "px"); 
}

var clicked = false;

function mouseOver(divId){
	var chkState = (document.getElementById(divId).className).search("_up");
	var currentState = "";
		//alert (chkState);
		//alert (divId..substr(start,length));
		if (chkState>=0){
			currentState = "_up";
			document.getElementById(divId).className = divId + "_down";
		} else {
			document.getElementById(divId).className = divId + "_up";
		}
		// document.getElementById("menuHome").className = "menuHome_up";
		// document.getElementById("menuCandE").className = "menuCandE_up";
		// document.getElementById("menuCM").className = "menuCM_up";
		// document.getElementById("menuProducts").className = "menuProducts_up";
		// document.getElementById("menuContact").className = "menuContact_up";
		// document.getElementById(divId).className = divId+"_down";
}

function mouseOut(divId){
	if (clicked == false){
		var chkState = (document.getElementById(divId).className).search("_down");
		var currentState = "";
		//alert (chkState);
		//alert (divId..substr(start,length));
		if (chkState>=0){
			currentState = "_down";
			document.getElementById(divId).className = divId + "_up";
		} else {
			document.getElementById(divId).className = divId + "_down";
		}
	} else {
		clicked = false;
	}
}

function navigation (divId){
	// contentObj.innerHTML = document.getElementById("content").innerHTML;
	// pageTitleObj.innerHTML = document.getElementById("pageTitle").innerHTML;
	document.getElementById("menuHome").className = "menuHome_up";
	document.getElementById("menuCandE").className = "menuCandE_up";
	document.getElementById("menuCM").className = "menuCM_up";
	document.getElementById("menuProducts").className = "menuProducts_up";
	document.getElementById("menuContact").className = "menuContact_up";
	document.getElementById(divId).className = divId+"_down";
	switch (divId){
		case "menuHome":
		document.getElementById("circleImage").className = "circleImageHome";
		document.getElementById("pageTitle").innerHTML = "<br/>HOME";
		document.getElementById("content").innerHTML = "<p id='homeContent'>DB International is a Netherlands-based global chemical supplier with partners in China and Eastern Europe providing top-quality raw materials and intermediates for industrial chemicals, speciality chemicals, and agrochemical applications. All materials are produced exclusively in modern installations using cutting-edge technology.</p><p>Our skill and know-how provides us with the ability to develop high quality, custom-made solutions to cater for every requirement in product development, manufacturing, sourcing and distribution.</p><p>We have storage facilities in the US, China and Europe, which means  we can supply when and where you need it, ensure steady production supply and consistent quality.</p><p>At DB International we are constantly striving for excellence. Our many years of experience in the industry mean we can offer the highest level of expertise to our customers. From us you can expect consistent quality, on-time delivery, efficient service and the most competitive rates. These are our trademarks and the reason for our excellent reputation in the field.</p>";
		document.getElementById("circleImage").className = "circleImageHome";
		document.getElementById("pageTitle").className = "homeTitle";
		break;
		case "menuProducts":
		document.getElementById("pageTitle").innerHTML = "<br/>PRODUCTS";
		document.getElementById("content").innerHTML = "<p id='productsContent'>DB International is a leading global distributor of chemicals including cross-linkers, fluoro chemicals, pyruvates, chiral chemicals, fine chemicals, speciality chemicals, bulk chemicals, polymers and additives. They are produced exclusively in modern facilities using cutting-edge technology, such as lab, pilot, and commercial scale equipment for product development and synthetic production.With our unique global network and logistic expertise we can guarantee  efficient, on-time delivery.</p><p id='CPLLink' class='CPLLink_up' onclick='' onmouseover='this.className=\"CPLLink_over\"' onmouseout='this.className=\"CPLLink_up\"'><strong>Chemical Product Listing</strong></p>";
		document.getElementById("circleImage").className = "circleImageProducts";
		document.getElementById("pageTitle").className = "productsTitle";
		break;
		case "menuCandE":
		document.getElementById("pageTitle").innerHTML = "CAPABILITY & <br/>EQUIPMENT";
		document.getElementById("content").innerHTML = "<p id='CandEContent'><strong>Synthesis</strong><br/>Esterification & Saponification<br/>Chlorination & Bromination<br/>Fluorination & Iodination<br/>Hydrogenation<br/>Oxidation & Epoxidation<br/>Diazonation<br/>Cynation<br/>Asymmetric Catalysis</p><p><strong>Process</strong><br/>Moisture-free and Oxygen-free Reaction<br/>High Pressure (10 Mpa)<br/>Low Temperature (-40C), High Temperature (300C)<br/>Homogeneous & Heterogeneous Reaction<br/>Phase Transfer Catalytic Reaction<br/>Gas/Solid, Gas/Liquid, Gas/Solid/Liquid Reaction<br/>Multi-column Distillation<br/>Short-path or Thin-film Distillation<br/>Crystallization, Centrifugation, Drying</p>";
		document.getElementById("circleImage").className = "circleImageCandE";
		document.getElementById("pageTitle").className = "CandETitle";	
		break;
		case "menuCM":
		document.getElementById("pageTitle").innerHTML = "CUSTOM MANUFACTURING";
		document.getElementById("content").innerHTML = "<div id='CMContent'><p>DB International partners exclusively with hi-tech synthesis/process development labs and sophisticated production facilities located in USA, Eastern Europe and China. This enables us to provide excellent solutions our customers’ diverse and challenging custom manufacturing needs. For example:<ul><li><div class='bodyTxt'>Product and Process Development</div></li><li><div class='bodyTxt'>Scale-up and Pilot Production</div></li><li><div class='bodyTxt'>Organic Synthesis and Production</div></li><li><div class='bodyTxt'>Polymerization and Test</div></li><li><div class='bodyTxt'>Distribution and Logistics</div></li></ul><br/>At DB International we are constantly striving for excellence. Working closely with our partners, we have built a global reputation for confidentiality, feasibility, high quality, cost-effectiveness, efficiency, and reliability.</p></div>";
		document.getElementById("circleImage").className = "circleImageCM";
		document.getElementById("pageTitle").className = "CMTitle";
		break;
		case "menuContact":
		document.getElementById("pageTitle").innerHTML = "<br/>CONTACT";
		document.getElementById("content").innerHTML = "<div id='contactContent'><p class=\"headerTxt trebuchet\">DB INTERNATIONAL B.V.</p>Top Naefflaan 48<br/>1183 BS Amstelveen<br/>The Netherlands<br/>tel.: (+31) 20 4539063<br/>fax.: (+31) 20 4539067<br/><A HREF=\"mailto:info@dbinternational.nl\" id=\"mailLink\">info@dbinternational.nl</A><p><br/>Chamber of Commerce Amsterdam,  nr. 34257645</p></div>";
		document.getElementById("circleImage").className = "circleImageContact";
		document.getElementById("pageTitle").className = "contactTitle";		
		break;
		default:
		break;
	}
		clicked = true;
		//IE hack first the style.display  = "block "; is needed
	// pageTitleObj.innerHTML = pageTitleObj.innerHTML;
	// contentObj.innerHTML = contentObj.innerHTML;
	//document.getElementById('content').innerHTML = 'kabouter';
}

