function writeCSS(){
	document.write("<sty"+"le type=\"text/css\">"+" #propgallery div { display:block}#propgallery { overflow:hidden }#propgallery img, #propgallery p { display:none }"+"<"+"/sty"+"le>");
if(navigator.userAgent.indexOf("Mac")>-1 && navigator.appVersion.indexOf("MSIE 5")){
	document.write("<sty"+"le type=\"text/css\">"+" #propgallery #x li a  { display:inline }"+"<"+"/sty"+"le>");
}
}
writeCSS();
function CC_Gallery(){ // codecreate.co.uk
document.gp=document.getElementById('propgallery');if(!document.gp) return; document.ca=document.gp.getElementsByTagName('P');document.pg=document.gp.getElementsByTagName('IMG');if(!document.gp) return;
for(var i=0;i<document.ca.length;i++){
var image = new Image();
image.src = document.pg[i].src;
document.ca[i].style.display = 'none';
}

CC_Display();
}
function CC_Display(){ // codecreate.co.uk
document.getElementById('x').style.display='block';
var str = '';
for(var i=0;i<document.ca.length;i++){
if(document.ca.length>1){
str += '<li onclick="CC_Show('+i+')"><a href="javascript:;" >'+(i+1)+'</a></li>';
}
}
document.getElementById('x').innerHTML ='<ul>'+str+'</ul><!--[if lt IE 6]><style>#x li {cursor:hand;}</style><![endif]-->';
CC_Show(0);
}
function CC_Show(n){ // codecreate.co.uk
var btn = document.getElementById('x');
for(var i=0;i<document.ca.length;i++){
if(document.ca.length>1) btn.getElementsByTagName('A')[i].className = '';
document.ca[i].style.display = 'none';
document.pg[i].style.display = 'none';
}
document.ca[n].style.display = 'block';
document.pg[n].style.display = 'block';
if(document.ca.length>1) btn.getElementsByTagName('A')[n].className = 'btn_on';
}
function posIframe(){
if(document.getElementById && document.getElementById('mydiv')){
var d = document.getElementById('mydiv');
d.style.top = 180+'px';
d.style.left = document.body.clientWidth/2-210+'px'
document.getElementById('columnRight').style.height = 600+'px';
d.style.display = 'block';
}
}
window.onresize = posIframe;
window.onload = function(){
P7_initPM(0,0,1,-20,10);
CC_Gallery();
posIframe();
}