function setSocialIcons() {
    var div = document.createElement("div");
    div.setAttribute("id", 'social_icons');
    div.style.width = "110px";
    div.style.height = "51px";
    div.style.top = "78px";
    if (navigator.appVersion.indexOf("Mac") != -1) {
        div.style.left = (pageWidth() / 2) + 271 + "px";
    }
    else {
        div.style.left = (pageWidth() / 2) + 281 + "px";
    }
    div.style.position = "absolute";
    div.innerHTML = "<a href='http://www.facebook.com/pages/Lil-Critters-Gummy-Vitamins/363907131405?v=wall' target='_blank'><img src='images/social/facebook.png' border='0'></a><img src='images/spacer.gif' width='5' height='1'><a href='http://twitter.com/LilCritters' target='_blank'><img src='images/social/twitter.png' border='0'></a>";
    div.zIndex = 5;
    document.body.appendChild(div);
	
	//info for Video Contest Start
	var video = document.createElement("div");
	video.setAttribute("id", 'video-link');
	//video.style.width = "110px";
    //video.style.height = "51px";
    //video.style.top = "78px";
    if (navigator.appVersion.indexOf("Mac") != -1) {
        video.style.left = (pageWidth() / 2) + 105 + "px";
    }
    else {
        video.style.left = (pageWidth() / 2) + 115 + "px";
    }
	video.style.top = "541px";
	video.style.position = "absolute";
	video.innerHTML = "<img src='contest/images/gb-contest-link.png'>";
	video.zIndex = 5;
	document.body.appendChild(video);
	
	var go = document.createElement("div");
	go.setAttribute("id", 'go-video');
	if (navigator.appVersion.indexOf("Mac") != -1) {
        go.style.left = (pageWidth() / 2) + 330 + "px";
    }
    else {
       go.style.left = (pageWidth() / 2) + 340 + "px";
    }
	go.style.top = "577px";
	go.style.position = "absolute";
	go.innerHTML = "<a href=\"/contest/\"><img src='contest/images/go.png' border='0' /></a>";
	go.zIndex = 10;
	document.body.appendChild(go);
	//info for Video Contest End

window.onresize = resetIcons;
}
function resetIcons()
{
	var div = document.getElementById('social_icons');
	if (navigator.appVersion.indexOf("Mac") != -1) {
	    div.style.left = (pageWidth() / 2) + 271 + "px";
	}
	else {
	    div.style.left = (pageWidth() / 2) + 281 + "px";
	}
	
	//Info for Video contest start
	var video = document.getElementById('video-link');
	if (navigator.appVersion.indexOf("Mac") != -1) {
		video.style.left = (pageWidth() / 2) + 105 + "px";
	}
	else {
	    video.style.left = (pageWidth() / 2) + 115 + "px";
	}
	video.style.top = 541 + "px";
	
	var go = document.getElementById('go-video');
	if (navigator.appVersion.indexOf("Mac") != -1) {
        go.style.left = (pageWidth() / 2) + 330 + "px";
    }
    else {
       go.style.left = (pageWidth() / 2) + 340 + "px";
    }
	go.style.top = "577px";
	//Info for Video contest end
}
// Browser Window Size and Position
// copyright Stephen Chapman, 3rd Jan 2005, 8th Dec 2005
// you may copy these functions but please keep the copyright notice as well
function pageWidth() {
    return window.innerWidth != null ? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;
}
function pageHeight() {
    return window.innerHeight != null ? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null ? document.body.clientHeight : null
}
