fs=0;

function showresumeform(){
		if(fs==0){
		document.getElementById("sendresume").className="sendresume sropen";
		document.getElementById("resumeform").style.display="block";
		fs=1;
		}
		else{
		document.getElementById("sendresume").className="sendresume";
		document.getElementById("resumeform").style.display="none";
		fs=0;
		}
	
	}


/*
 * Summary:      Core experiment function that applies any number of classes to all child elements
 *               contained in all occurences of a parent element (either with or without a specific class)
 * Parameters:   parentElementTag - parent tag name
 *               parentElementClass - class assigned to the parent; if null, all parentElementTag elements will be affected
 *               childElementTag -  tag name of the child elements to apply the styles to
 *               styleClasses - comma separated list of any number of style classes (using 2 classes gives the classic "zebra" effect)
 * Return:       none
 */
 
function striper(parentElementTag, parentElementClass, childElementTag, styleClasses,hover, hoverValue){
	var i=0,currentParent,currentChild,hover = false;
	// capability and sanity check
	if ((document.getElementsByTagName)&&(parentElementTag)&&(childElementTag)&&(styleClasses)) {
		if(hoverValue){
			hover = hoverValue;
		}
		// turn the comma separate list of classes into an array
		var styles = styleClasses.split(',');
		// get an array of all parent tags
		var parentItems = document.getElementsByTagName(parentElementTag);
		// loop through all parent elements
		while (currentParent = parentItems[i++]) {
			// if parentElementClass was null, or if the current parent's class matches the specified class
			if ((parentElementClass == null)||(currentParent.className == parentElementClass)) {
				var j=0,k=0;
				// get all child elements in the current parent element
				var childItems = currentParent.getElementsByTagName(childElementTag);
				// loop through all child elements
				while (currentChild = childItems[j++]) {
					
					// based on the current element and the number of styles in the array, work out which class to apply
					k = (j+(styles.length-1)) % styles.length;
					// add the class to the child element - if any other classes were already present, they're kept intact
					if(currentChild.className == ''){
						currentChild.className = styles[k];
						if(hover){
							currentChild.onmouseover = function(){this.className = this.className + "_hover";};
							currentChild.onmouseout = function(){this.className = this.className.split("_hover")[0]};
						}
					}
				}
			}
		}
	}
}

function ShowFlash(src, width, height) {

	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\""+width+"\" height=\""+height+"\" title=\"\">");
	document.write("<param name=\"movie\" value=\""+src+"\">");
	document.write("<param name=\"quality\" value=\"high\">");
	document.write("<param name=\"wmode\" value=\"transparent\">");
	document.write("<embed src=\""+src+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\" wmode=\"transparent\">");
	document.write("</embed></object>");

}

function switchTo(lang) {
  if (lang == 'en') {
    jQuery('div.brands_ru').fadeOut(1000,function(){
      jQuery('div.brands_en').fadeIn(1000);
    });
    
  }
  if (lang == 'ru') {
    jQuery('div.brands_en').fadeOut(1000,function(){
      jQuery('div.brands_ru').fadeIn(1000);
    });
    
  }
};
